<?php
return [
    'language' => 'zh-CN',
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'extensions' =>include dirname(dirname(__DIR__)).'/extensions/extensions.php',
    'bootstrap' => ['queue'],
    'components' => [
        'queue' => [
            'class' =>'yii\queue\file\Queue',
            'path' => '@console/runtime/queue',
            'fileMode' => 0777
        ],
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'request' => [
            'class' => 'common\components\extenders\RequestManage'
        ],
        'cacheManage' => [
            'class' => 'common\components\extenders\CacheManage'
        ],
        'datetimepicker' => [
            'class' => 'common\components\widgets\Datetimepicker'
        ],
        'messageManage' => [
            'class' => 'common\components\services\message\MessageManage'
        ],
        'restManage' => [
            'class' => 'common\components\extenders\RestManage'
        ],
        'smsSend' => [
            'class' => 'common\components\extenders\SmsSend',
            'account' => 'cf_VIP7915',
            'password' => 'zyqc2015'
        ],
//        废弃'swooleClient' => [
//            'class' => 'common\components\extenders\SwooleClientManage',
//        ],
        'swooleClientnew' => [//为了不破坏之前的重新创建文件
            'class' => 'common\components\extenders\SwooleClientnewManage',
        ],
        'i18n' => [
            'translations' => [
                'common' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
                'backend' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
                'frontend' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
                'zhtfrontend' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
                'saishie' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
                'webback' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
                'webfront' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
                'wechat' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
                'wechatzht' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@root/messages',
                ],
            ],
        ],

        'authManager' => [
            'class' => 'yii\rbac\DbManager',
        ],
        'formatter' => [
            'dateFormat' => 'yyyy-MM-dd',
            'timeFormat' => 'H:i:s',
            'datetimeFormat' => 'yyyy-MM-dd H:i:s',
            'decimalSeparator' => ',',
            'thousandSeparator' => ' ',
            'currencyCode' => 'EUR',
        ],
    ],
];
